#ifndef TEXTURE_H
#define TEXTURE_H

#include <SDL2/SDL_opengl.h>
#include <string>

class cTexture
{
    public:
        cTexture();
        ~cTexture();

        bool loadTextureFromPixels32(GLuint* pixels, GLuint width, GLuint height);
        bool loadTextureFromFile(std::string fileName);
        void freeTexture();
        void render( GLfloat x, GLfloat y , bool centered);
        GLuint getTextureID();
        GLuint textureWidth();
        GLuint textureHeight();
    protected:
    private:
        GLuint mTextureID;

        GLuint mTextureWidth;
        GLuint mTextureHeight;
};

#endif // TEXTURE_H
